package com.ftg.learn.cloud.controller;

import com.ftg.learn.cloud.service.DemoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@CrossOrigin
public class DemoController {

    @Autowired
    DemoService demoService;

    @GetMapping("/show")
    public String hello(){
        return demoService.hello();
    }

}
